/**
 * 
 */
package com.gragra.nounIdentification.tests;

import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import com.gragra.nounIdentification.IncreasingMaxWithMin;
import com.gragra.nounIdentification.LinearIncreasingMax;

/**
 * @author Christoph Teichmann
 * created Mar 28, 2013 8:23:02 PM
 * @version 0.1
 */
public class TestIncreasingMaxWithMin
{
	/**
	 * 
	 */
	private IncreasingMaxWithMin imwm;
	/**
	 *
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception
	{imwm = new IncreasingMaxWithMin(new LinearIncreasingMax(3, 10), 5, 100);}
	/**
	 * Test method for {@link com.gragra.nounIdentification.IncreasingMaxWithMin#getMaxNouns(int, com.gragra.nounIdentification.BaseNounIdentifier)}.
	 */
	@Test
	public final void testGetMaxNouns()
	{
		assertEquals(imwm.getMaxFrames(0, null),5);
		assertEquals(imwm.getMaxFrames(1, null),6);
		assertEquals(imwm.getMaxFrames(2, null),9);
		assertEquals(imwm.getMaxFrames(3, null),12);
	}
	/**
	 * Test method for {@link com.gragra.nounIdentification.IncreasingMaxWithMin#getMaxFrames(int, com.gragra.nounIdentification.NounIdentifier)}.
	 */
	@Test
	public final void testGetMaxFrames()
	{
		assertEquals(imwm.getMaxNouns(0, null),100);
		assertEquals(imwm.getMaxNouns(1, null),100);
		assertEquals(imwm.getMaxNouns(2, null),100);
		assertEquals(imwm.getMaxNouns(3, null),100);
		assertEquals(imwm.getMaxNouns(12, null),130);
		assertEquals(imwm.getMaxNouns(13, null),140);
	}
}
